package com.cndw.kungfu.vo.battlevo;

import com.cndw.kungfu.domain.Player;
import com.cndw.kungfu.model.battle.FighterCrossPlayer;

/**
 * 组队成员
 * 
 * @author fantadust [9677889@qq.com]
 * @date 2011-7-11 下午5:25:54
 */
public class TeamPlayerVO {
	// 唯一id
	private long uniqueId;
	// 名称
	private String name;
	/**
	 * 职业
	 */
	private int vocationId;
	/**
	 * 等级
	 */
	private int level;
	private int hp;// 血
	private int mp;// 蓝
	private int maxHp;
	private int maxMp;

	/**
	 * 当前装备
	 */
	private String dress;

	private boolean master;
	
	public TeamPlayerVO(){
		
	}

	public TeamPlayerVO(Player player) {
		uniqueId = player.getPlayerId();
		name = player.getPlayerName();
		vocationId = player.getVocationId();
		level = player.getLevel();
		hp = player.getHp();
		mp = player.getMp();
		maxHp = player.getMaxHp();
		maxMp = player.getMaxMp();
		dress = player.getDress();
		if (player.getTeamId() > 0) {
			try {
				master = player.getTeam().isMaster(uniqueId);
			} catch (Exception e) {
				e.printStackTrace();
			}
		} else {

		}


	}
	public TeamPlayerVO(FighterCrossPlayer crossPlayer){
		uniqueId = crossPlayer.getUniqueId();
		name = crossPlayer.getName();
		vocationId = crossPlayer.getVocationId();
		level = crossPlayer.getLevel();
		hp = crossPlayer.getHp();
		mp = crossPlayer.getMp();
		maxHp = crossPlayer.getMaxHp();
		maxMp = crossPlayer.getMaxMp();
		dress = crossPlayer.getDress();
	}

	public long getUniqueId() {
		return uniqueId;
	}

	public void setUniqueId(long uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getVocationId() {
		return vocationId;
	}

	public void setVocationId(int vocationId) {
		this.vocationId = vocationId;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getHp() {
		return hp;
	}

	public void setHp(int hp) {
		this.hp = hp;
	}

	public int getMp() {
		return mp;
	}

	public void setMp(int mp) {
		this.mp = mp;
	}

	public int getMaxHp() {
		return maxHp;
	}

	public void setMaxHp(int maxHp) {
		this.maxHp = maxHp;
	}

	public int getMaxMp() {
		return maxMp;
	}

	public void setMaxMp(int maxMp) {
		this.maxMp = maxMp;
	}

	public String getDress() {
		return dress;
	}

	public void setDress(String dress) {
		this.dress = dress;
	}

	public boolean isMaster() {
		return master;
	}

	public void setMaster(boolean master) {
		this.master = master;
	}


}
